package com.fjsay.java.demo4;

public class eatFood {
    String sex;
    String eyeColor;
    String bodyColor;
    String eatFood;
    public eatFood(){

    }

    public eatFood(String sex, String eyeColor, String bodyColor, String eatFood) {
        this.sex = sex;
        this.eyeColor = eyeColor;
        this.bodyColor = bodyColor;
        this.eatFood = eatFood;
    }

    public void eatFood1(String sex, String eyeColor, String bodyColor, String eatFood) {
        this.sex = sex;
        this.eyeColor = eyeColor;
        this.bodyColor = bodyColor;
        this.eatFood = eatFood;
    }
    @Override
    public String toString() {
        return eyeColor +"眼睛的" + bodyColor+ "色的" + sex + "兔子在吃" +eatFood;
    }
}
